package com.bajie.bjlisten.entity;

import com.bajie.bjlisten.enums.SignStatusEnum;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Package: com.bajie.framework.domain.sign
 * <p>
 * Description： TODO
 * <p>
 * Author: wangzhen
 * <p>
 * Date: Created in 2019/5/11 10:37 AM
 */


@Data
@ToString
@Entity
@Table(name = "bj_sign")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class BjSign implements Serializable {

    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(length = 32)
    private String id;

    private String user_id;

    private Date sign_createtime;
    private Date updateTime;

    private SignStatusEnum sign_status;

    private Integer sign_times; //连续签到次数

    private Integer virtual_coin;

}
